package com.chuangshi.core.vote.position.entity;

import com.chuangshi.core.kit.Entity;
import com.chuangshi.core.kit.Request;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.stereotype.Component;


/**
 * 岗位信息
 *
 * @author ggliming
 * @date 2019-02-21
 */
@Component
@Document(collection = "position_info")
public class Position extends Entity {

    public Position() {

    }

    public Position(Request request) {
        this.copy(request);
    }

    /**
     * 岗位编号
     */
    @Id
    @Field
    private String positionId;

    /**
     * 岗位名称
     */
    @Field
    private String positionName;

    /**
     * 岗位备注
     */
    @Field
    private String positionMemo;

    /**
     * 排序
     */
    @Field
    private Integer positionSort;


    public String getPositionId() {
        return positionId;
    }

    public void setPositionId(String positionId) {
        this.positionId = positionId;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public String getPositionMemo() {
        return positionMemo;
    }

    public void setPositionMemo(String positionMemo) {
        this.positionMemo = positionMemo;
    }

    public Integer getPositionSort() {
        return positionSort;
    }

    public void setPositionSort(Integer positionSort) {
        this.positionSort = positionSort;
    }

}